print("""
姓名:{nam}
年龄：{ag}
年薪:{va}
""".format(nam = "name",ag = "age",va="value"))
#占位符

#元祖里的可变类型 更换
tup = ('name','age','house',[1,2,3,4])
tup[3][0] = 55
print(tup)

t1= ("aa",11)
t2 = ("bb",22)
li1=[("cc",11)]

dic = {}
dic[t1[0]] = t1[1]
dic[t2[0]] = t2[0]
dic[li1[0][0]] = li1[0][1]
print(dict((t1,t2)))

li2 = [1,2,3,4]
li2.remove(1)
print(li2)

"""num1 = int(input(1))
num2 = int(input(2))
num3 = int(input(3))

max_num = num1
if max_num < num2:
max_num = num2

if max_num < num3:
max_num = num3
print(max_num)
"""
"""for i in range(1,9):
  for j in range(1,i+1):
      print(str(j) + " * " + str(i) + "=" + str(i*j),end=" ")
"""
"""
num = 0
while num < 9:
    num += 1

    num2 = 1
    while num2 <= num:

        print("{}*{}={}".format(num,num2,num*num2),end="\t")
        num2 += 1"""

lis2 = [2, 3, 4, 5, 6, 7, 8, 9]
for i in lis2:
    print(i,lis2)
    lis2.pop(0)

# 交换两个数
a = 1
b = 2
temp = a

a = b
b = temp
print(a,b)

my_str = '52.36e'
if my_str.isdigit():
    print(my_str)
if '.' in my_str:
    for i in my_str.split('.'):
        if not i.isdigit():
            print(i)